<?php
/**
 * Created by PhpStorm.
 * User: Monkey
 * Date: 2021/10/13
 * Time: 11:27
 * Desc: 登陆
 */

namespace app\backend\validate;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule = [
        'account' => 'require',
        'password' => 'require',
        'code' => 'require'
    ];

    protected $message = [
        'account.require' => '账号不能为空',
        'password.require' => '密码不能为空',
        'code.require' => '验证码不能为空',
    ];

    protected $scene = [
        'index'  =>  ['account','password','code']
    ];
}
